home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _CF42DE882FA54D3BAC06D3304A548C44 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.5 KB  |  72 lines

  1. //CGVER1.3
  2. //
  3. // Generated by Microsoft (R) D3DX9 Shader Compiler 4.09.00.1126
  4. //
  5. //   fxc /T ps_2_0 /Fc $$out.cg $$in.cg
  6. //
  7. //
  8. // Parameters:
  9. //
  10. //   float4 $Offset01;
  11. //   float4 $Offset2;
  12. //   float4 $Params0;
  13. //   float4 $Params1;
  14. //   sampler2D $baseMap;
  15. //
  16. //
  17. // Registers:
  18. //
  19. //   Name         Reg   Size
  20. //   ------------ ----- ----
  21. //   $Offset01    c0       1
  22. //   $Offset2     c1       1
  23. //   $Params0     c2       1
  24. //   $Params1     c3       1
  25. //   $baseMap     s0       1
  26. //
  27.  
  28.     ps_2_0
  29.     dcl t0.xy
  30.     dcl t1.xy
  31.     dcl t2.xy
  32.     dcl t3.xy
  33.     dcl t4.xy
  34.     dcl t5.xy
  35.     dcl t6.xy
  36.     dcl_2d s0
  37.     texld_pp r5, t1, s0
  38.     texld_pp r6, t4, s0
  39.     texld_pp r3, t0, s0
  40.     texld_pp r1, t2, s0
  41.     texld_pp r4, t5, s0
  42.     texld_pp r0, t3, s0
  43.     texld_pp r2, t6, s0
  44.     add_pp r5, r5, r6
  45.     mul r5, r5, c2.y
  46.     mad_pp r3, r3, c2.x, r5
  47.     add_pp r1, r1, r4
  48.     mad_pp r1, r1, c2.z, r3
  49.     add_pp r0, r0, r2
  50.     mad_pp r5, r0, c2.w, r1
  51.     add r3.xy, t0, c0
  52.     add r6.xy, t0, -c0
  53.     add r1.xy, t0, c0.wzyx
  54.     add r4.xy, t0, -c0.wzyx
  55.     add r0.xy, t0, c1
  56.     add r2.xy, t0, -c1
  57.     texld_pp r3, r3, s0
  58.     texld_pp r6, r6, s0
  59.     texld_pp r1, r1, s0
  60.     texld_pp r4, r4, s0
  61.     texld_pp r0, r0, s0
  62.     texld_pp r2, r2, s0
  63.     add_pp r3, r3, r6
  64.     mad_pp r3, r3, c3.x, r5
  65.     add_pp r1, r1, r4
  66.     mad_pp r1, r1, c3.y, r3
  67.     add_pp r0, r0, r2
  68.     mad_pp r0, r0, c3.z, r1
  69.     mov_pp oC0, r0
  70.  
  71. // approximately 33 instruction slots used (13 texture, 20 arithmetic)
  72.